package com.wanxi.dao;

import com.wanxi.model.NavModel;

import java.util.ArrayList;
import java.util.List;

public class NavDao {

    public List<NavModel> findNavModelList() {
        List<NavModel> list = new ArrayList<>();
        String[] titles = {"网址首页", "公司介绍"};
        String[] hrefs = {"/index", "/company"};
        for (int i = 0; i < titles.length; i++) {
            NavModel model = new NavModel();
            model.setHref(hrefs[i]);
            model.setTitle(titles[i]);
            list.add(model);
        }
        return list;
    }
}
